package org.example.yiyu.service;

import org.example.yiyu.mapper.TagMapper;
import org.example.yiyu.model.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

public interface TagService {

   //增加标签
    public Long addTag(Tag tag);

    //删除标签
    public void removeTag(Long id);

    //修改标签
    public void modifyTag(Tag tag);

    // 获取所有标签
    public List<Tag> getAllTags();

    // 批量删除某标签下的所有日记
    public void deleteDiariesByTag(Long tagId);


}
